import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import ".//assets/css/index.scss";
// import elFormRenderer from "el-form-renderer-vue3";
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import piniaPersist from "pinia-plugin-persist";
import { createPinia } from "pinia";
import elFormRenderer from ".//components/femessage/el-form-renderer.vue";
const app = createApp(App);
const pinia = createPinia();
app.component("elFormRenderer", elFormRenderer);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
pinia.use(piniaPersist);

app.use(pinia);
// app.use(elFormRenderer);
app.use(ElementPlus, {
  locale: zhCn,
});

app.use(router);
app.mount("#app");
